<?php


/**
 * Usuario form.
 *
 * @package    auip
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */


class Usuario3bForm extends BaseUsuario3Form
{
  public function configure()
  {
      $this->widgetSchema['email'] = new sfWidgetFormInputText(array(), array('size'=>'25', 'readonly'=>'true'));
      $this->widgetSchema['nombre'] = new sfWidgetFormInputText(array(), array('size'=>'25'));
      $this->widgetSchema['apellidos'] = new sfWidgetFormInputText(array(), array('size'=>'25'));
      $this->widgetSchema['identificacion_pasaporte'] = new sfWidgetFormInputText(array(), array('size'=>'25'));
      
      $this->widgetSchema['nacionalidad_id'] = new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Pais'), 'order_by' => array('nombre','asc'), 'add_empty' => true), array('id'=>'nacionalidad'));
      $this->widgetSchema['pais_residencia_id'] = new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Pais_3'), 'order_by' => array('nombre','asc'), 'add_empty' => true), array('id'=>'pais_residencia'));
      
      $this->widgetSchema['fecha_nacimiento'] = new sfWidgetFormInputText(array(), array('class'=>'fecha_nacimiento', 'id'=>'fecha_nacimiento', 'maxlength' => '10', 'readonly'=>'true'));
      $this->widgetSchema['lugar_nacimiento'] = new sfWidgetFormInputText(array(),array('size'=>'25'));
      $this->widgetSchema['direccion'] = new sfWidgetFormInputText(array(),array('size'=>'25'));
      $this->widgetSchema['telefono'] = new sfWidgetFormInputText(array(),array('size'=>'25'));      
  }
  
  public function getNameTo()
  {
      return 'Usuario3bForm';
  }
}
